package com.zjitc;

import com.zjitc.obj.Teacher;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by lenovo on 2018/3/8.
 */
public class App2 {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("spring-config.xml");
        Teacher t1=context.getBean(Teacher.class);
        System.out.println(t1.getUser());
    }
}
